package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备故障映射业务对象 device_fault_map
 *
 * @author Panda Shen
 * @date 2024-01-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DeviceFaultMapBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关联设备id
     */
    @NotBlank(message = "关联设备id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 故障名
     */
    @NotBlank(message = "故障名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String faultName;


}
